package com.retail.xiaocui.server.mapper;

import java.util.List;
import com.retail.xiaocui.common.domain.Purchase;
import com.retail.xiaocui.common.domain.req.AddPurchaseReq;
import com.retail.xiaocui.common.domain.req.PurchaseReq;
import org.apache.ibatis.annotations.Param;

/**
 * 采购申请单Mapper接口
 *
 * @author retail
 * @date 2024-03-05
 */
public interface PurchaseMapper
{
    /**
     * 查询采购申请单
     *
     * @param procurementId 采购申请单主键
     * @return 采购申请单
     */
    public Purchase selectPurchaseByProcurementId(Integer procurementId);

    /**
     * 查询采购申请单列表
     *
     * @param purchase 采购申请单
     * @return 采购申请单集合
     */
    public List<Purchase> selectPurchaseList(Purchase purchase);

    /**
     * 新增采购申请单
     *
     * @param purchase 采购申请单
     * @return 结果
     */
    public int insertPurchase(Purchase purchase);

    /**
     * 修改采购申请单
     *
     * @param purchase 采购申请单
     * @return 结果
     */
    public int updatePurchase(Purchase purchase);

    /**
     * 删除采购申请单
     *
     * @param procurementId 采购申请单主键
     * @return 结果
     */
    public int deletePurchaseByProcurementId(Integer procurementId);

    /**
     * 批量删除采购申请单
     *
     * @param procurementIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseByProcurementIds(Integer[] procurementIds);

    List<Purchase> purchaseList();





    void addPurchase(Purchase purchase);

    int userUpdatePurchase(PurchaseReq purchaseReq);

    Purchase findBypurchaseId(Integer purchaseId);

    void updpurchase(AddPurchaseReq addPurchaseReq);



//    Purchase addPurchase(int i);
}
